package com.antunnel.system.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="bc_betting")
public class Betting implements Serializable{
	
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="id")
	private Long id;
	
	@Column(name="userid")
	private Integer userid; //当前用户
	
	@ManyToOne
    @JoinColumn(name = "lotterid")
	private LotterBase lotterBase;//彩种
	
	@ManyToOne
    @JoinColumn(name = "lotterplayclassid")
	private LotterPlayClass lotterPlayClass;//玩法类别
	
	@ManyToOne
    @JoinColumn(name = "lotterplayid")
	private LotterPlay lotterPlay;//玩法
	
	@Column(name="betcount")
	private Integer betcount;//投注总数
	
	@Column(name="multiple")
	private Integer multiple;//投注倍数
	
	@Column(name="addtime")
	private Date addtime;//投注时间
	
	@Column(name="betprice")
	private  Double betprice;//花费金额
	
	@Column(name="bettype")
	private  Double bettype;//1输2赢3未开奖
	
	@Column(name="issue")
	private String issue;//期号
	
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Integer getUserid() {
		return userid;
	}
	public void setUserid(Integer userid) {
		this.userid = userid;
	}
	public LotterBase getLotterBase() {
		return lotterBase;
	}
	public void setLotterBase(LotterBase lotterBase) {
		this.lotterBase = lotterBase;
	}
	public LotterPlay getLotterPlay() {
		return lotterPlay;
	}
	public void setLotterPlay(LotterPlay lotterPlay) {
		this.lotterPlay = lotterPlay;
	}
	public Integer getBetcount() {
		return betcount;
	}
	public void setBetcount(Integer betcount) {
		this.betcount = betcount;
	}
	public Integer getMultiple() {
		return multiple;
	}
	public void setMultiple(Integer multiple) {
		this.multiple = multiple;
	}
	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}
	public Double getBetprice() {
		return betprice;
	}
	public void setBetprice(Double betprice) {
		this.betprice = betprice;
	}
	public Double getBettype() {
		return bettype;
	}
	public void setBettype(Double bettype) {
		this.bettype = bettype;
	}
	public String getIssue() {
		return issue;
	}
	public void setIssue(String issue) {
		this.issue = issue;
	}
	public LotterPlayClass getLotterPlayClass() {
		return lotterPlayClass;
	}
	public void setLotterPlayClass(LotterPlayClass lotterPlayClass) {
		this.lotterPlayClass = lotterPlayClass;
	}
}
